<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo "SCIU"; ?></title>
</head>

<body>

<div class="container" id="page">

	<div id="header">
            <table>
                <tr>
                    <td width="15%" id="logo"></td>
                    <td width="85%" id="titulo"><h1><?php echo "Sistema de Control de Incidentes Urbanos"; ?></h1></td>
                </tr>
            </table>
	</div><!-- header -->

	<div id="mainmenu">
		<?php
            $this->widget('ext.CDropDownMenu.CDropDownMenu',array(
            'style' => 'default', // or default or navbar
                 'items'=>array(
                    array(
                        'label'=>'Principal',
                        'url'=>array('/site/index'),
                        ), 
                    array(
                        'label'=>'Procesos',
                        'url'=>array('/site/index'),
                        'items' => array(
                            array(
                            'label' => 'Sugerencia',
                            'url'=>array('/sugerencias/admin'),
                            ),
                            array (
                                'label' => 'Ruta',
                                'url'=>array('/incidente/index'),
                            )
                        ),
                    ),
                    array(
                        'label'=>'Mantenimiento',
                        'url'=>array('/site/index'),
                        'items' => array(
                            array(
                            'label' => 'Empleado',
                            'url'=>array('/empleado/index'),
                            ),
                            array (
                                'label' => 'Incidente',
                                'url'=>array('/incidente/index'),
                            ),
                            array (
                                'label' => 'Involucrados',
                                'url'=>array('/persona/index'),
                            )
                        ),
                    ),
                    array(
                        'label'=>'Reportes',
                        'url'=>array('/site/page', 'view' => 'about'),
                        ),
                    array(
                        'label'=>'Noticias',
                        'url'=>array('/site/page', 'view' => 'about'),
                        ),
                    array(
                        'label'=>'Contáctanos',
                        'url'=>array('/site/contact'),
                        ),
                    array(
                        'label'=>'Ingresar',
                        'url'=>array('/site/login'),
                        'visible'=>Yii::app()->user->isGuest,
                        ),
                    array(
                        'label'=>'Salir ('.Yii::app()->user->name.')',
                        'url'=>array('/site/logout'),
                        'visible'=>!Yii::app()->user->isGuest),
                        ),
                        ));
            ?>
	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>
                
<!--        <div id="sidebar">
            <div id="sidebar-top">
                <?php echo"FUNCIONALIDADES"?>
            </div>
            <ul>
			<li><a href="#">Primera Funcionalidad</a></li>
			<li><a href="#">Segunda Funcionalidad</a></li>
			<li><a href="#">Tercera Funcionalidad</a></li>
			<li><a href="#">Cuarta Funcionalidad</a></li>
            </ul>
        </div>
	-->
        <?php echo $content;?>

	<div class="clear"></div>

	<div id="footer">
            <br>Copyright &copy; <?php echo date('Y'); ?> </br>
	    All Rights Reserved.<br/>
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>
